<?php
global $header;
global $footer;
global $menu;
global $featureManager;
global $currentUser;
global $people_list;

$header['title'] = 'Web Dev Lab';
$header['page_id'] = 'people';

#$featureManager->apply("com.yizin.platform.site.menu", $menu);
#$header['menu'] = $menu['html'];
$featureManager->apply("com.yizin.platform.site.header", $header);
$featureManager->apply("com.yizin.platform.site.footer", $footer);

?>
<?php echo $header['html']; ?>

<ul class="main-menu">
		<li><a href="<?php echo REQUEST_BASE;?>projects/">projects</a></li>
		<li class="current"><a href="<?php echo REQUEST_BASE;?>people/">people</a></li>
		<li><a href="<?php echo REQUEST_BASE;?>seminars/">seminars</a></li>
	</ul>
</div>
<div id="main">
	<div class="main-wrapper">
		<h2 class="page-title"><a href="<?php echo REQUEST_BASE;?>people/" class="people">People</a></h2>
		<div class="main-content">
			<?php $counter = 1;
			foreach ($people_list as $person) { 
				if ($counter%2 == 1) {?>
			<div class="content-container list">
				<ul class="list-content clearfix">
					<li class="main-info clearfix">
						<div class="image-info">
							<img src="<?php echo RESOURCE_BASE . $person['photo']?>" title="<?php echo $person['first_name'] . '' . $person['last_name'];?>" alt="<?php echo $person['first_name'] . '' . $person['last_name'];?>" />
						</div>
						<div class="text-info">
							<h4 class="name">
								<a href='<?php echo REQUEST_BASE; ?>people/<?php echo strtolower($person['first_name']) . '_' . strtolower($person['last_name']);?>/' >
									<?php echo $person['first_name'] . ' ' . $person['last_name']; ?>
								</a>
							</h4>
							<div class="misc">
								<p><?php echo $person['title']; ?></p>
							</div>
						</div>
					</li>
			<?php $counter += 1; 
				}
				else { ?>
					<li class="main-info clearfix">
						<div class="image-info">
							<img src="<?php echo RESOURCE_BASE . $person['photo']?>" title="<?php echo $person['first_name'] . '' . $person['last_name'];?>" alt="<?php echo $person['first_name'] . '' . $person['last_name'];?>" />
						</div>
						<div class="text-info">
							<h4 class="name">
								<a href='<?php echo REQUEST_BASE; ?>people/<?php echo strtolower($person['first_name']) . '_' . strtolower($person['last_name']);?>/' >
									<?php echo $person['first_name'] . ' ' . $person['last_name']; ?>
								</a>
							</h4>
							<div class="misc">
								<p><?php echo $person['title']; ?></p>
							</div>
						</div>
					</li>
				</ul>
			</div>
			<?php $counter +=1;
				}
			}
			if ($counter%2 == 0) {
			?>
				</ul>
			</div>
			<?php }?>
		</div>
	</div>
				
</div>

<?= $footer['html'] ?>
